import VueRouter from "vue-router";
import Vue from "vue";
Vue.use(VueRouter);

import routes from "./routers";

export default new VueRouter({
  mode: "hash",
  routes,
  scrollBehavior(to, from, savedPosition) {
    return { y: 0 };
  },
});
